public class Test {

    public static void main(String[] args) {
        SingleLinkedList singleLinkedList = new SingleLinkedList();
        singleLinkedList.addLast(1);
        singleLinkedList.addFirst(2);
        singleLinkedList.addFirst(3);
        singleLinkedList.addFirst(4);
        singleLinkedList.addFirst(5);
        singleLinkedList.addFirst(6);
        singleLinkedList.display();
        singleLinkedList.addIndex(7,7);
        singleLinkedList.addIndex(0,7);
        singleLinkedList.display();
        singleLinkedList.addIndex(7,8);
        singleLinkedList.display();
        singleLinkedList.addIndex(3,9);
        singleLinkedList.display();
        singleLinkedList.remove(10);
        singleLinkedList.remove(-3);
        singleLinkedList.remove(7);
        singleLinkedList.remove(8);
        singleLinkedList.remove(9);
        singleLinkedList.display();
        System.out.println(singleLinkedList.contains(1));
        System.out.println(singleLinkedList.contains(8));
        singleLinkedList.addFirst(6);
        singleLinkedList.addIndex(4,6);
        singleLinkedList.addLast(6);
        singleLinkedList.display();
        singleLinkedList.remove(6);
        singleLinkedList.display();
        singleLinkedList.removeAllKey(6);
        singleLinkedList.display();
        System.out.println(singleLinkedList.size());
        singleLinkedList.clear();
        singleLinkedList.display();


    }

}
